<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人资料 - 科普小站</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body class="bg-purple-50 min-h-screen text-gray-900">
    <div class="container">
    <!-- 顶部导航栏 -->
    <nav class="bg-white shadow-sm sticky top-0 z-40">
        <div class="max-w-7xl mx-auto flex items-center justify-between px-4 h-16">
            <div class="flex items-center space-x-2">
                <i class="fa-solid fa-flask text-purple-600 text-2xl"></i>
                <span class="text-xl font-bold">科普小站</span>
            </div>
            <div class="flex items-center space-x-2">
                <a href="index.jsp" class="px-4 py-2 hover:text-purple-600">首页</a>
                <a href="article.jsp" class="px-4 py-2 hover:text-purple-600">科普文章</a>
                <a href="${pageContext.request.contextPath}/books" class="px-4 py-2 hover:text-purple-600">书籍购买</a>
                <a href="wrong-questions.jsp" class="px-4 py-2 hover:text-purple-600">错题本</a>
                <a href="user-profile.jsp" class="px-4 py-2 hover:text-purple-600">个人信息</a>
                <a href="#" class="px-4 py-2 text-purple-600 border-b-2 border-purple-600 font-medium">个人资料</a>
            </div>
        </div>
    </nav>
    <!-- 主内容区 -->
    <main class="max-w-xl mx-auto px-4 py-12">
        <h2 class="text-2xl font-bold mb-8 flex items-center text-purple-700"><i class="fa-solid fa-id-card text-purple-500 mr-2"></i> 个人资料</h2>
        <div class="bg-white rounded-2xl shadow-lg p-8">
            <form action="profile" method="post" class="space-y-6">
                <div>
                    <label class="block mb-1 font-medium">姓名</label>
                    <input type="text" name="name" class="w-full border rounded px-3 py-2" required>
                </div>
                <div>
                    <label class="block mb-1 font-medium">邮箱</label>
                    <input type="email" name="email" class="w-full border rounded px-3 py-2" required>
                </div>
                <div class="text-right">
                    <input type="submit" value="保存信息" class="bg-purple-600 hover:bg-purple-700 text-white px-6 py-2 rounded-lg font-semibold cursor-pointer">
                </div>
            </form>
        </div>
    </main>
    <!-- 底部信息区（与首页一致） -->
    <footer class="bg-gray-900 text-white py-10 mt-16">
        <div class="max-w-7xl mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <div class="flex items-center space-x-2 mb-4">
                        <i class="fa-solid fa-flask text-purple-400 text-2xl"></i>
                        <span class="text-xl font-bold">科普小站</span>
                    </div>
                    <p class="text-gray-400 text-sm mb-4">探索科学的奇妙世界</p>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-400 hover:text-white"><i class="fa-brands fa-weibo"></i></a>
                        <a href="#" class="text-gray-400 hover:text-white"><i class="fa-brands fa-weixin"></i></a>
                        <a href="#" class="text-gray-400 hover:text-white"><i class="fa-brands fa-twitter"></i></a>
                    </div>
                </div>
                <div>
                    <h3 class="text-lg font-medium mb-4">内容分类</h3>
                    <ul class="space-y-2 text-gray-400">
                        <li><a href="#" class="hover:text-white">天文宇宙</a></li>
                        <li><a href="#" class="hover:text-white">生命科学</a></li>
                        <li><a href="#" class="hover:text-white">物理化学</a></li>
                        <li><a href="#" class="hover:text-white">科技创新</a></li>
                        <li><a href="#" class="hover:text-white">地球环境</a></li>
                    </ul>
                </div>
                <div>
                    <h3 class="text-lg font-medium mb-4">快速链接</h3>
                    <ul class="space-y-2 text-gray-400">
                        <li><a href="#about" class="hover:text-white">关于我们</a></li>
                        <li><a href="submit-article.jsp" class="hover:text-white">我要投稿</a></li>
                        <li><a href="${pageContext.request.contextPath}/books" class="hover:text-white">书籍购买</a></li>
                        <li><a href="feedback.jsp" class="hover:text-white">问题反馈</a></li>
                        <li><a href="#" class="hover:text-white">隐私政策</a></li>
                    </ul>
                </div>
                <div>
                    <h3 class="text-lg font-medium mb-4">订阅我们</h3>
                    <p class="text-gray-400 text-sm mb-4">订阅我们的科普周刊，获取最新科学资讯</p>
                    <div class="flex">
                        <input type="email" placeholder="输入您的邮箱" class="px-4 py-2 rounded-l-lg w-full focus:outline-none focus:ring-2 focus:ring-purple-400">
                        <button class="bg-purple-600 hover:bg-purple-700 text-white px-4 rounded-r-lg"><i class="fa-solid fa-paper-plane"></i></button>
                    </div>
                </div>
            </div>
            <div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-500 text-sm">
                <p>&copy; 2025 科普小站. 保留所有权利.</p>
            </div>
        </div>
    </footer>
    </div>
</body>
</html> 